diff options
| author | Joe Carstairs <me@joeac.net> | 2024-10-13 17:33:23 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2024-10-13 17:37:01 +0100 |
| commit | e56bbfb51f04c351108c89078c627937ebca7bef (patch) | |
| tree | a20a08ef587edff15d59f126aaa87ebb4e0753ad /src/pages/[locale]/index.astro | |
| parent | ea64fd05f7f5ac4d053e6dc8dc544585981f19e9 (diff) | |
Refactors About and Contact pages
Diffstat (limited to 'src/pages/[locale]/index.astro')
| -rw-r--r-- | src/pages/[locale]/index.astro | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/pages/[locale]/index.astro b/src/pages/[locale]/index.astro index 9f994a2..796bf59 100644 --- a/src/pages/[locale]/index.astro +++ b/src/pages/[locale]/index.astro @@ -4,9 +4,6 @@ import localeStaticPaths from '$lib/localeStaticPaths'; import translate from '$i18n/translate'; import tPage from '$i18n/translations/pages/home'; import type Locale from '$types/Locale'; -import { getMostRecentNewsItem } from '$lib/newsUtils'; -import contactDetails from '$data/contactDetails'; -import NewsIndex from '$components/NewsIndex/NewsIndex.astro'; import Button from '$components/Button.astro'; import CommitteeList from '$components/CommitteeList/CommitteeList.astro'; @@ -16,33 +13,9 @@ export async function getStaticPaths() { const locale = Astro.params.locale as Locale; const t = translate(locale); -const mostRecentNewsItem = await getMostRecentNewsItem(locale); --- <Page title={t(tPage, { key: 'title' })}> - <!-- - Lallans 105 is leukin fair full the nou. Ance Lallans 105 is out we'll - stert encouragin submeissions for 106. - - <section> - <h2 set:html={t(tPage, { key: 'submit' })} /> - <p set:html={t(tPage, { key: 'submit-para-1' })} /> - <p set:html={t(tPage, { key: 'submit-para-2' })} /> - <p set:html={t(tPage, { key: 'submit-para-3' })} /> - </section> - --> - <section> - <h2 class="grid-span-6" set:html={t(tPage, { key: 'news' })} /> - <NewsIndex newsItems={mostRecentNewsItem ? [mostRecentNewsItem] : []} headingLevel="h3" /> - { - mostRecentNewsItem && ( - <Button classNames="grid-span-3 grid-prose-end" href={`/${locale}/news`}> - {t(tPage, { key: 'aw-news' })} ▶ - </Button> - ) - } - </section> - <section id="about"> <h2 set:html={t(tPage, { key: 'about-us' })} /> <p set:html={t(tPage, { key: 'about-us-para-1' })} /> @@ -59,12 +32,4 @@ const mostRecentNewsItem = await getMostRecentNewsItem(locale); {t(tPage, { key: 'aw-furthsettins' })} ▶ </Button> </section> - - <section id="contact"> - <h2 set:html={t(tPage, { key: 'contact' })} /> - <a href={`${locale}/mailto:${contactDetails.generalEnquiries.emailAddress}`}> - {contactDetails.generalEnquiries.emailAddress} - </a> - <address set:html={contactDetails.generalEnquiries.address.join('<br />')} /> - </section> </Page> |
